import tkinter as tk
from tkinter import ttk


def main():
    window = tk.Tk()

    # 创建 Treeview 控件
    treeview = ttk.Treeview(window)

    # 定义表格的列
    treeview["columns"] = ("Name", "Age", "City")

    # 设置列的标题
    treeview.heading("Name", text="Name")
    treeview.heading("Age", text="Age")
    treeview.heading("City", text="City")

    # 添加表格的数据
    treeview.insert("", "end", text="1", values=("John Doe", 25, "New York"))
    treeview.insert("", "end", text="2", values=("Jane Smith", 30, "London"))
    treeview.insert("", "end", text="3", values=("Bob Johnson", 40, "Paris"))

    # 显示表格
    treeview.pack()
    # 创建输入框
    entry = tk.Entry(window)
    entry.pack()
    # 创建按钮
    button = tk.Button(window, text="Get Input")
    button.pack()
    window.mainloop()


def startApplication(param):
    print("Button clicked with parameter:", param)

indexWindow = tk.Tk()

startApplicationButton = tk.Button(indexWindow, text="Click me!", command=lambda: startApplication("Hello"))
startApplicationButton.pack()

indexWindow.mainloop()
if __name__ == "__main__":
    main()